#include "PageShower.h"
#include "Router.h"

PageShower::PageShower()
{
}

void PageShower::show()
{
	page->show();
}

void PageShower::choose()
{
	page->choose();
}

void PageShower::init()
{
	Router::push(shared_from_this(), "/");
}

State PageShower::getState()
{
	return state;
}

void PageShower::setState(State newState)
{
	state = newState;
}

void PageShower::setPage(std::unique_ptr<Page> newPage)
{
	page = move(newPage);
}

std::unique_ptr<Page> PageShower::getPage()
{
	return move(page);
}
